package com.maybach.component.city.domain;

/**
 * Created by well on 15/3/26.
 */
public class Province {

    private Integer proID;
    private String name;
    private String remark;
    private int proSort;
    private Integer areaId;
    private String shortName;

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public Integer getProID() {
        return proID;
    }

    public void setProID(Integer proID) {
        this.proID = proID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        setShortName(name);
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getProSort() {
        return proSort;
    }

    public void setProSort(int proSort) {
        this.proSort = proSort;
    }

    public String getShortName(){
        return this.shortName;
    }

    public void setShortName(String name) {
        if (name.contains("内蒙古") || name.contains("黑龙江"))
            this.shortName = name.substring(0, 3);
        else
            this.shortName = name.substring(0, 2);
    }
}
